package com.murray.assignment.pojo;

import java.util.List;

/**
 * @author Murray
 * @Date 2021/8/13
 * @Time 14:57
 */
public class OrderDetails {

    public Integer getDetailsId() {
        return detailsId;
    }

    public void setDetailsId(Integer detailsId) {
        this.detailsId = detailsId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public Integer getOrderDesc() {
        return orderDesc;
    }

    public void setOrderDesc(Integer orderDesc) {
        this.orderDesc = orderDesc;
    }

    public float getBuyPrice() {
        return buyPrice;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public OrderDetails() {
    }

    public OrderDetails(Integer detailsId, Integer orderId, Integer skuId, Integer orderDesc, double buyPrice, Integer num) {
        this.detailsId = detailsId;
        this.orderId = orderId;
        this.skuId = skuId;
        this.orderDesc = orderDesc;
        this.num = num;
    }

    /**
     * orderDetailsId
     */
    private Integer detailsId;
    /**
     * 订单id
     */
    private Integer orderId;
    /**
     * skuid
     */
    private Integer skuId;

    public void setBuyPrice(float buyPrice) {
        this.buyPrice = buyPrice;
    }

    /**
     * 订单描述
     */
    private Integer orderDesc;
    /**
     * 购买价格
     */
    private float buyPrice;
    /**
     * 购买数量
     */
    private Integer num;

    /**
     * 对应的表中没有相应字段，但是我这里可以用多表联查额外组装字段
     *  查看订单详情式的商品名称
     */
    private String goodsName;

    /**
     * 查看订单详情式的商品图片
     */
    private String goodsImg;

    /**
     * 查看订单详情时的属性名和属性值
     */
    private List<AttrNameAndAttrValue> attrNameAndAttrValueList;

    @Override
    public String toString() {
        return "OrderDetails{" +
                "detailsId=" + detailsId +
                ", orderId=" + orderId +
                ", skuId=" + skuId +
                ", orderDesc=" + orderDesc +
                ", buyPrice=" + buyPrice +
                ", num=" + num +
                ", goodsName='" + goodsName + '\'' +
                ", goodsImg='" + goodsImg + '\'' +
                ", attrNameAndAttrValueList=" + attrNameAndAttrValueList +
                '}';
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public List<AttrNameAndAttrValue> getAttrNameAndAttrValueList() {
        return attrNameAndAttrValueList;
    }

    public void setAttrNameAndAttrValueList(List<AttrNameAndAttrValue> attrNameAndAttrValueList) {
        this.attrNameAndAttrValueList = attrNameAndAttrValueList;
    }
}
